package com.luyun.frogpay.base.dagger.app.module;

import android.content.Context;

import com.luyun.frogpay.base.annotator.ContextForApplication;
import com.luyun.frogpay.base.annotator.PerformApp;
import com.luyun.frogpay.base.application.BaseApplication;

import dagger.Module;
import dagger.Provides;

@Module
public class ApplicationModule {

    private BaseApplication baseApplication;

    public ApplicationModule(BaseApplication baseApplication) {
        this.baseApplication = baseApplication;
    }

    @Provides
    @PerformApp
    @ContextForApplication
    public Context provideApplicationContext(){
        return baseApplication.getApplicationContext();
    }
}
